package com.yourname.menu;

import com.yourname.action.LoginAction;
import com.yourname.action.RegistAction;
import com.yourname.entity.Student;
import com.yourname.entity.Teacher;
import com.yourname.store.DataStore;

import java.util.Scanner;



public class RegisterMenu {


    /**
     * 注册菜单
     */
    public static void registerMenu(){
        while (true){
            Scanner scanner=new Scanner(System.in);
            System.out.println("""
                1. 学生注册
                2. 教师注册
                """);
            int i = scanner.nextInt();
            switch (i){
                case 1->
                        RegistAction.registerStudent();
                case 2->
                        RegistAction.registerTeacher();
            }
            if(i==3){
                break;
            }
        }

    }
}
